import request from '@/utils/request.js'
// 活动风采首页
export function getMien(data){
	let userid = uni.getStorageSync("userinfo").userid?uni.getStorageSync("userinfo").userid:' '
	return request({
		"url":'/activity/activityShow/list1?userId='+userid+"&pageNum="+data.pageNum+"&pageSize="+data.pageSize,
		"method":"get",
	})
}
// 活动评论
export function getComment(data){
	return request({
		"url":'/activity/activityRemark/list1?userId='+(uni.getStorageSync("userinfo")?uni.getStorageSync("userinfo").userid:"")+'&showId='+data.showId+'&pageNum='+data.pageNum+'&pageSize='+data.pageSize,
		"method":"get",
		// "data":data
	})
}
// 发布活动风采
export function publishActivity(data){
	return request({
		"url":"/activity/activityShow/release",
		"method":"post",
		"data":data
	})
}
// 活动风采点赞
export function thumbsUpActivity(data){
	console.log(data)
	return request({
		"url":"/activity/activityShow/Like",
		"method":"post",
		"data":data
	})
}
// 风采评论点赞
export function agreeComment(data){
	return request({
		"url":'/activity/activityRemark/Like1',
		"method":'post',
		"data":data
	})
}
// 发布评论
export function PostComments(data){
	return request({
		"url":'/activity/activityRemark/addRemark',
		"method":'post',
		"data":data
	})
}
// 发布评论回复
export function replyComment(data){
	return request({
		"url":"/activity/activityRemark/addRemarkReply",
		"method":'post',
		"data":data
	})
}
// 删除评论
export async function deleteComment(data){
	return await request({
		"url":"/activity/activityRemark/DeleteRemark?userId="+uni.getStorageSync("userinfo").userid+"&remarkId="+data,
		"method":"get"
	})
}
// 删除风采
export async function deleteMienGet(data){
	return await request({
		"url":"/activity/activityShow/deleteShow?userId="+data.userId+"&showId="+data.showId,
		"method":"get"
	})
}
// 活动详情单个风采接口
export function activityShow(showid){
	return request({
		'url':"/activity/activityShow/getInfo?showId="+showid+"&userId="+uni.getStorageSync("userinfo").userid,
		'method':'get'
	})
}